﻿#ifndef ICORE4INTERFACE_H
#define ICORE4INTERFACE_H

#include <stdint.h>

class Icore4Interface
{
public:
    Icore4Interface(){};

    struct Parma{
        uint16_t reserved;//第一个变量传输有问题？
        uint16_t A;
        uint16_t B;
        uint16_t PosL;
        uint16_t PosH;
        uint16_t Limits;
        uint16_t IOin;
    };

    Parma *parma;
private:
    virtual int testSram(int num,int *result) = 0;
    virtual int printCmd(int num,int *result) = 0;
    virtual int printParam(int addr,int data,int *result) = 0;
    virtual int printReset(int num) = 0;
};

#endif // ICORE4INTERFACE_H
